#if($msg)
<script>
alert('$!msg');
</script>
#end
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>编辑主题</title>
<link href="/include/manage/images/main/style.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="/include/manage/js/jquery.js"></script>
<script type="text/javascript">
function checkForm(){
	if($("#themename").val().length==0){
		alert("主题名不能为空！");
		$("#themename")[0].focus();
		return false;
	}
}
</script>
</head>
<body>
<form name="writeform" method="post" action="/manage_theme.ad" onSubmit="return checkForm()">
<input type="hidden" name="parameter" value="$!action" />
<input type="hidden" name="id" value="$!t.id" />
<input type="hidden" name="status"#if($t.status) value="$!t.status"#else value="0"#end />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="30" background="/include/manage/images/main/tab_05.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="12" height="30"><img src="/include/manage/images/main/tab_03.gif" width="12" height="30" /></td>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="46%" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="5%"><div align="center"><img src="/include/manage/images/main/tb.gif" width="16" height="16" /></div></td>
                <td width="95%"><span class="STYLE3">当前位置</span>：[模板管理]-[主题管理]</td>
              </tr>
            </table></td>
            <td width="54%"><table border="0" align="right" cellpadding="0" cellspacing="0">
              <tr>
                <td width="60"><table width="90%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td><div align="center"><a href="/manage_theme.ad?parameter=add"><img src="/include/manage/images/main/22.gif" width="14" height="14" /></a></div></td>
                    <td><div align="center"><a href="/manage_theme.ad?parameter=add">新增</a></div></td>
                  </tr>
                </table></td>
                <td width="52"><table width="88%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td><div align="center"><a href="/manage_theme.ad?parameter=delete&id=$!t.id"><img src="/include/manage/images/main/11.gif" width="14" height="14" /></a></div></td>
                    <td><div align="center"><a href="/manage_theme.ad?parameter=delete&id=$!t.id">删除</a></div></td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
        <td width="16"><img src="/include/manage/images/main/tab_07.gif" width="16" height="30" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
  	<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" background="/include/manage/images/main/tab_12.gif">&nbsp;</td>
        <td>
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#b5d6e6">
    <tr> 
      <td width="20%" height="25" bgcolor="#ffffff">&nbsp;主题名称：</td>
      <td bgcolor="#ffffff">&nbsp;
         <input name="name" type="text" id="themename" value="$!t.name" />
         <font color="#FF0000">*</font>
      </td>
    </tr>
    <tr>
      <td height="25" bgcolor="#ffffff">&nbsp;简短说明：</td>
      <td bgcolor="#ffffff">&nbsp;
        <input name="description" type="text" id="description" value="$!t.description" />
      </td>
    </tr>
    <tr> 
      <td bgcolor="#ffffff">&nbsp;样式代码：</font></td> 
      <td bgcolor="#ffffff"><textarea name="css" cols="80" rows="8" id="css">$!t.css</textarea> 
      </td>
    </tr>
  </table>
		</td>
        <td width="8" background="/include/manage/images/main/tab_15.gif">&nbsp;</td>
      </tr>
    </table></td>
    </tr>
  <tr>
    <td height="35" background="/include/manage/images/main/tab_19.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="12" height="35"><img src="/include/manage/images/main/tab_18.gif" width="12" height="35" /></td>
        <td valign="top"><div align="center"> 
          <input type="submit" name="Submit" value="保存" />
          &nbsp; &nbsp; 
          <input type="reset" name="Reset" value="重写" />
        </div></td>
        <td width="16"><img src="/include/manage/images/main/tab_20.gif" width="16" height="35" /></td>
      </tr>
    </table>
	</td>
  </tr>
</table>
</form>
</body>
</html>